package measures;

import java.util.List;

import basics.Vector;
import basics.VectorMatrix;

public class GaussianKernel extends Measure {

	private double _gamma;

	public GaussianKernel(double gamma) {
		_gamma = gamma;
	}

	@Override
	public double measure(Vector x1, Vector x2) {
		double d = x1.minus(x2).norm2();
		d = Math.exp(d);
		return -d * d / _gamma;
	}

}
